package edu.nctu.csie.jichang.database.model.cell;

import edu.nctu.csie.jichang.database.util.StringUtil;

public abstract class AbstractRootElement<T> {

	private String name;

	public AbstractRootElement(){
		name = StringUtil.EMPTY;
	}
	public AbstractRootElement(String pName){
		name = pName;
	}	
	public String getName() {
		return name;
	}
	protected void setName(String pName) {
		name = pName;
	}
	public String toString() {
		return name;
	}
	/**
	 * 判斷是否相同
	 * @return
	 */
	public abstract boolean isSame(T pElement);
}